<h5 class="list_title"><a class="list_title_in" id="po1" name="po1">首页模式、网站通用风格设置</a></h5>
<form action="?post=style" method="post">
  <table width="100%" border="0" cellspacing="5" cellpadding="0">
    <tr>
      <td width="200" align="right">首页模式：</td>
      <td><div class="note">
<?php
$mod_size_arr = array();

if (!(isset($mode_arr_) && is_array($mode_arr_))) {
  $mode_arr_ = @glob('index_*.php');
}
if (count($mode_arr_) > 0) {
    foreach ($mode_arr_ as $k => $v) {
    $mod_size_arr[] = filesize($v);
    echo '<input type="radio" class="radio" name="index_mod" value="'.$v.'"'.(filesize('index.php') == filesize($v) ? ' checked' : '').' />
        '.$mode_arr[$v].' [<a href="'.$v.'" target="_blank">预览</a>] [<a href="http://www.162100.com/'.$v.'" target="_blank">官方预览</a>]<br />';
  }
}

echo !in_array(filesize('index.php'), $mod_size_arr) ? '<b class="redword">模板文件已被破坏！</b>' : '';

unset($mode_arr, $mode_arr_, $k, $v, $mod_size_arr);

?>



        </div></td>
    </tr>
    <tr>
      <td width="200" align="right">左右栏看齐：</td>
      <td><input type="checkbox" class="checkbox" name="parallel" value="1"<?php echo file_exists('writable/js/parallel.js') ? ' checked' : ''; ?> /> 开启（首页左右栏不等高时自动看齐）</td>
    </tr>
    <tr>
      <td width="200">&nbsp;</td>
      <td style="padding-top:5px;"><button type="submit" onclick="if(confirm('确定提交吗？！')){addSubmitSafe();return true;}else{return false;}" class="send2" style="border:none;">提交</button></td>
    </tr>
  </table>
  <input type="hidden" name="act" value="indexmode" />
</form>
<p>&nbsp;</p>
<form action="?post=style" method="post">
  <table width="100%" border="0" cellspacing="5" cellpadding="0">
    <tr>
      <td width="200" align="right">站点默认风格：</td>
      <td><div class="note"><?php

  $total_style = 0;
  $style_files = array();

  $cssfiles = @glob('writable/css/*', GLOB_ONLYDIR);
  $css_n = count($cssfiles);

  if ($css_n > 0) {
    echo '<table width="100%" border="0" cellspacing="1" cellpadding="0">
';
    foreach ($cssfiles as $css) {
      $css = basename($css);
      echo '
  <tr><td width="150"><b>'.@file_get_contents('writable/css/'.$css.'/title.txt').'风格：</b></td><td>';
      $style_files[$css] = @glob('writable/css/'.$css.'/*', GLOB_ONLYDIR);
      $style_n = count($style_files[$css]);
	  if ($style_n > 0) {
	    $total_style += $style_n;
		foreach ($style_files[$css] as $style) {
          $style = basename($style);
          if (file_exists('writable/css/'.$css.'/'.$style.'/style.css')) {
            $sy1 = '';
            $sy2 = '';
            $sy3 = '';
          } else {
            $sy1 = ' disabled="disabled"';
            $sy2 = '<del class="grayword">';
            $sy3 = '（限商业版）</del>';
          }
		  echo '<input type="radio" class="radio" name="cssfile" value="'.$css.'/'.$style.'"'.('abc'.$web['cssfile'].'abc.' == 'abc'.$css.'/'.$style.'abc.' ? ' checked' : '').''.$sy1.' /> '.$sy2.''.@file_get_contents('writable/css/'.$css.'/'.$style.'/title.txt').''.$sy3.' ';
		}
	  } else {
        echo '该风格系列下没有样式';
	  }
      echo '
</td></tr>';
    }
    echo '
</table>';
  } else {
    echo '<b>没有风格系列</b>';
  }

	?>      </div></td>
    </tr>
<?php
$cssfiles_jieri = @glob('writable/css/jieri/*', GLOB_ONLYDIR);
if (count($cssfiles_jieri) > 0) {
  if ($f_js = @file_get_contents('readonly/js/main.js')) {
    if (preg_match('/\/\* +jieri_style +\*\/(.+)\/\* +\/jieri_style +\*\//isU', $f_js, $m_f_js)) {
      if (preg_match('/if *\(styleDate *\!\= *\'\'\) *\{/', $m_f_js[1])) {
        $s_j_set = 1;
      }
    }
    unset($f_js, $m_f_js);
  }
  echo '
    <tr>
      <td width="200" align="right"><b class="redword">节日壁纸：</b></td>
      <td><input type="checkbox" class="checkbox" name="cssfile_jieri_auto" value="1"'.(isset($s_j_set) && $s_j_set == 1 ? ' checked' : '').' />节日当天自动使用<span class="grayword">（重启浏览器生效）</span></td>
    </tr>
    ';
}
unset($cssfiles_jieri, $s_j_set);
?>
    <tr>
      <td width="200">&nbsp;</td>
      <td style="padding-top:5px;"><button type="submit" onclick="if(confirm('确定提交吗？！')){addSubmitSafe();return true;}else{return false;}" class="send2" style="border:none;">提交</button></td>
    </tr>
  </table>
  <input type="hidden" name="act" value="style" />
</form>
<p>&nbsp;</p>
<h5 class="list_title"><a class="list_title_in" id="po2" name="po2">其它模式设置</a></h5>
<form action="?post=style" method="post">
  <table width="100%" border="0" cellspacing="5" cellpadding="0">
    <tr>
      <td width="200" align="right">网址链接模式：</td>
      <td>
<div class="note"><b>分类页：</b><br /><input type="radio" class="radio" name="link_type" value="0"<?php echo $web['link_type'] != 1 ? ' checked' : ''; ?> /> 直接链接（即直接外链，示例：<a href="http://www.baidu.com" target="_blank">百度</a>）<br />
<input type="radio" class="radio" name="link_type" value="1"<?php echo $web['link_type'] == 1 ? ' checked' : ''; ?> /> 中转链接（通过export.php?url=链接，即把外链变成内链，有利于增大传出的PR值，示例：<a href="export.php?url=http%3A%2F%2Fwww.baidu.com%2F" target="_blank">百度</a>）<br />
<b>首页：</b><br /><input type="radio" class="radio" name="link_type_i" value="0"<?php echo $web['link_type_i'] != 1 ? ' checked' : ''; ?> /> 直接链接<br />
<input type="radio" class="radio" name="link_type_i" value="1"<?php echo $web['link_type_i'] == 1 ? ' checked' : ''; ?> /> 中转链接</div>
</td>
    </tr>
    <tr>
      <td width="200" align="right">栏目页面网址排列模式：</td>
      <td><a id="httpType" name="httpType"></a><div class="note">0 站名排列（即按网站名称依次排列，<a href="class.php?column_id=homepage&class_id=0&http_type=0" target="_blank">示例</a>）<br />
1 弹窗简介（鼠标经过网址时弹出该站点简介，<a href="class.php?column_id=homepage&class_id=0&http_type=1" target="_blank">示例</a>）<br />
2 详细显示（以流布局详细显示该站点名称、网址、简介，<a href="class.php?column_id=homepage&class_id=0&http_type=2" target="_blank">示例</a>）<br />
<a href="webmaster_central.php?get=area" target="_blank">具体详细请进入各频道、栏目分别设置</a></div></td>
    </tr>
    <tr>
      <td width="200" align="right">关于首页网址弹出简介？</td>
      <td><div class="note"><input type="radio" class="radio" name="d_type" value="0"<?php echo $web['d_type'] != 1 ? ' checked' : ''; ?> /> 弹出相应网址的简介<br />
<input type="radio" class="radio" name="d_type" value="1"<?php echo $web['d_type'] == 1 ? ' checked' : ''; ?> /> 关闭简介<br />
关于栏目页面的网址是否弹出简介，可在上一条[栏目页面网址排列模式]中控制</div></td>
    </tr>
    <tr>
      <td width="200">&nbsp;</td>
      <td style="padding-top:5px;"><button type="submit" onclick="if(confirm('确定提交吗？！')){addSubmitSafe();return true;}else{return false;}" class="send2" style="border:none;">提交</button></td>
    </tr>
  </table>
  <input type="hidden" name="act" value="other" />
</form>
